//5.2 - The Archery Competition - Dirk Henkemans - Prima Publishing #include #include #include "bow.cpp" using namespace std; class ArcheryCompetition { //member variables private: //variables int rounds; float redScore; Bow red; float blueScore; Bow blue; public: //constuctor ArcheryCompetition(int lrounds); //destructor ~ArcheryCompetition(); //methods int compete(void); }; //constructs an ArcheryCompetition object ArcheryCompetition::ArcheryCompetition(int lrounds) : rounds(lrounds), red(Bow("red")), blue(Bow("blue")), redScore(0), blueScore(0) { } //the destructor ArcheryCompetition::~ArcheryCompetition() { } //the heart of the game. Walks the player through an entire competition and figures out who won int ArcheryCompetition::compete() { //go through each round, keeping track of the score for(int i = 0; i < rounds; i++) { cout<<"now on round "<>get; }